function wen(){
	var txt ='谢谢光临xxx超市';
	var arr =[];
	var test = document.querySelector(".test2");
	var cont = 0;
	var timer=setInterval(function(){
		arr.push(txt[cont++]);
		test.innerText = arr.join("");
		if(arr.length == txt.length){
			clearInterval(timer);
		}
	},500)
}


function tran(){
	var pc = document.querySelector(".pc");
	var pc2 = document.querySelector(".pc2");
	var pc3 = document.querySelector(".pc3");
	var pc4 = document.querySelector(".pc4");
	var timer = setInterval(function(){
		pc.style.display ="block";
		
		var timer2 = setInterval(function(){
			pc2.style.display ="block";
			clearInterval(timer)			
		},700)
		var timer3 = setInterval(function(){
			pc3.style.display ="block";
			clearInterval(timer2)			
		},900)
		var timer4 = setInterval(function(){
			pc4.style.display ="block";
			clearInterval(timer3)	
			clearInterval(timer4)
		},1100)
		wen()
	},500)
}
tran()